import request from '@/utils/request'
// 初始化sku列表数据
// GET /admin/product/list/{page}/{limit}
export const reqSkuList = (page, limit) => request({
  url: `/admin/product/list/${page}/${limit}`,
  method: 'GET'
})
// sku上架 GET /admin/product/onSale/{skuId}

export const reqSale = (skuId) => request({
  url: `/admin/product/onSale/${skuId}`,
  method: 'GET'
})
// sku下架 GET /admin/product/cancelSale/{skuId}
export const reqCancel= (skuId) => request({
  url: `/admin/product/cancelSale/${skuId}`,
  method: 'GET'
})
// 获取sku详情
// GET /admin/product/getSkuById/{skuId}
export const reqSkuById = skuId => request({
  method: 'GET',
  url: `/admin/product/getSkuById/${skuId}`
})